Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

feat: remove useHead artifacts #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

harlan-zw
Copy link
Contributor

With the module removing scripts from the HTML, there are a few artifacts left over which aren't being used for anything.

This PR removes Nuxt core ones (useHead) and pre-fetch API links from @nuxt/content.

I'm interested in your thoughts, and quite happy to close this PR if you think it doesn't belong.

It may cause issues if / when island hydration is supported and I haven't done much coverage with the tests.

src/runtime/nitro-plugin.ts Outdated Show resolved Hide resolved
@danielroe
Copy link
Owner

I like the stripping of the artifacts from vueuse/head. But we might need to refine the implementation for the other prefetches. I don't want to do anything to remove anything the user has added, though of course you're right that we don't want nuxt/content's prefetches. Do you think there is a way to tell these apart?

@harlan-zw harlan-zw changed the title feat: strip useHead and api prefetching artifacts feat: strip useHead artifacts Sep 5, 2022
@harlan-zw
Copy link
Contributor Author

harlan-zw commented Sep 5, 2022

Good point, I've removed the prefetching removal code.

I'll send a PR to the @nuxt/content module to add a config for toggling the prefetching

@harlan-zw harlan-zw changed the title feat: strip useHead artifacts feat: remove useHead artifacts Sep 5, 2022
@harlan-zw harlan-zw changed the title feat: remove useHead artifacts feat: remove useHead artifacts Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants